package com.itheima.Pojo;

import java.sql.Date;
import java.util.List;

public class User {
    private Integer id;        //用户ID
    private String name;       //用户名
    private String pwd;        //用户密码
    private String address;    //用户地址
    private int status;        //状态
    private Date register_time; //注册时间
    private String login_ip;    //登录ip
    private List<Orders> ordersList;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public List<Orders> getOrdersList() {
        return ordersList;
    }

    public void setOrdersList(List<Orders> ordersList) {
        this.ordersList = ordersList;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public Date getRegister_time() {
        return register_time;
    }

    public void setRegister_time(Date register_time) {
        this.register_time = register_time;
    }

    public String getLogin_ip() {
        return login_ip;
    }

    public void setLogin_ip(String login_ip) {
        this.login_ip = login_ip;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", pwd='" + pwd + '\'' +
                ", address='" + address + '\'' +
                ", status=" + status +
                ", register_time=" + register_time +
                ", login_ip='" + login_ip + '\'' +
                ", ordersList=" + ordersList +
                '}';
    }
}
